<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>JS</title>
	</head>
	<body>
		<p id="demo">我的第一个段落</p>
		<script>
			//for
			for(var i=1;i<=9;i++)
			{
				for(var j=1;j<=i;j++)
				{
					document.write(i+"+"+j+"="+(i+j))+'&nbsp;&nbsp;';
					
				}
				document.write('<br>');
				
			}
			//weile
			var k=1;
			while(k<=5)
			{			
				document.write('<br>');
				document.write(k);
				k++;
			}
			//forin
			document.write('<br>');
			cars=['bwm','volo','land'];
			//Sdocument.write(cars);
			for(x in cars)
			{

				document.write(cars[x])+'<br>';
				if(x=2){
					break;
				}
			}
			
			function say(a,b)
			{
				alert(a*b);
				//return a*b;
			}
			document.getElementById('demo').innerHTML="我的js";
			document.write('<p>我的一个段落</p>')
			var cars=['zs','ls','mwz'];
			console.log('数据',cars);
		</script>
		<input type="button" onclick="say(2,3)" value="点击" />
	</body>
</html>
